home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBSlider / DialogThread.cpp next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  1.1 KB  |  55 lines

  1. // DialogThread.cpp : implementation file
  2. //    High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
  3.  
  4. #include "stdafx.h"
  5. #include "htbslider.h"
  6. #include "DialogThread.h"
  7. #include "SliderDlg.h"
  8.  
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13.  
  14. #endif
  15.  
  16. //extern SliderDlg* g_pSDlg;            // global pointer to button dialog used for setting focus and closing
  17. /////////////////////////////////////////////////////////////////////////////
  18. // DialogThread
  19.  
  20. IMPLEMENT_DYNCREATE(DialogThread, CWinThread)
  21.  
  22. DialogThread::DialogThread()
  23. {    
  24. }
  25.  
  26. DialogThread::~DialogThread()
  27. {
  28. }
  29.  
  30. BOOL DialogThread::InitInstance()
  31. {    
  32.     SliderDlg SDlg;
  33.     g_pSDlg = &SDlg;
  34.     SDlg.DoModal();
  35.  
  36.     return TRUE;
  37. }
  38.  
  39. int DialogThread::ExitInstance()
  40. {
  41.     g_pSDlg = NULL;
  42.     return CWinThread::ExitInstance();
  43. }
  44.  
  45. BEGIN_MESSAGE_MAP(DialogThread, CWinThread)
  46.     //{{AFX_MSG_MAP(DialogThread)
  47.         // NOTE - the ClassWizard will add and remove mapping macros here.
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // DialogThread message handlers
  53.  
  54.  
  55.